<html lang="en-US">

<head>
	<meta name="generator" content="Hugo 0.125.7">
    
<title>花落雨忧</title>
<meta property="og:title" content="花落雨忧">
<meta property="og:type" content="website">



    



<meta property="description" content="">






<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1">

<link rel="shortcut icon" href="https://www.lican.asia/logo/logo.png" type="image/x-icon" />


<link href="/index.xml" rel="alternate" type="application/rss+xml" title="花落雨忧" />


<link rel="stylesheet" href="/css/style.min.css" />

<link rel="stylesheet" href="/css/reset.min.css" />




<script src="https://www.lican.asia/js/highlight.min.js"></script>

<script>
hljs.configure({ ignoreUnescapedHTML: true })
hljs.highlightAll();
</script>


<script src="https://www.lican.asia/js/jquery.min.js"></script>




<link href="https://www.lican.asia/css/hugo-code.min.css" rel="stylesheet" />



</head>

<body id="period" class="home blog">
    <a class="skip-content" href="#main">Press "Enter" to skip to content</a>
    <div id="overflow-container" class="overflow-container">
        <header class="site-header" id="site-header" role="banner">
    <div class="max-width">
        <div id="title-container" class="title-container">
            <div id="site-title" class="site-title"><a href="/">花落雨忧</a></div>
            <p class="tagline">思所及 力所行 方为真.</p>
        </div>
        
        <div id="menu-primary-container" class="menu-primary-container">
            <div class="icon-container">
            </div>
            <div id="menu-primary" class="menu-container menu-primary" role="navigation">
                <nav class="menu">
                    <ul id="menu-primary-items" class="menu-primary-items">
                        
                        
                        <li id="menu-item-0"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/posts" aria-current="page" tabindex="0">首页</a></li>
                        
                        <li id="menu-item-1"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/tech/" aria-current="page" tabindex="1">技术文档</a></li>
                        
                        <li id="menu-item-2"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/article/" aria-current="page" tabindex="2">文章</a></li>
                        
                        <li id="menu-item-3"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/project/" aria-current="page" tabindex="3">项目</a></li>
                        
                        <li id="menu-item-4"
                            class="menu-item menu-item-type-custom menu-item-object-custom ">
                            <a href="/about/" aria-current="page" tabindex="4">关于</a></li>
                        
                    </ul>
                </nav>
            </div>
        </div>
    </div>
</header>

        <div id="primary-container" class="primary-container">
            <div class="max-width">
                <section id="main" class="main" role="main">
    <div id="loop-container" class="loop-container">
        
        
        
        
        
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/tools/2018-09-15-go-tool-pprof/">Go 大杀器之性能剖析 PProf</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/09/15</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 写了几吨代码，实现了几百个接口。功能测试也通过了，终于成功的部署上线了
结果，性能不佳，什么鬼？😭
想做性能分析 PProf 想要进行性能优化， …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/gin/2018-09-01-nginx/">「连载十七」用Nginx部署Go应用</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/09/01</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>知识点 Nginx。 反向代理。 本文目标 简单部署后端服务。
做什么 在本章节，我们将简单介绍 Nginx 以及使用 Nginx …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/gin/2018-08-26-makefile/">「番外」请入门 Makefile</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/08/26</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>知识点 写一个 Makefile 本文目标 含一定复杂度的软件工程，基本上都是先编译 A，再依赖 B，再编译 C&hellip;，最后才执行构建。如果每次都人为 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/gin/2018-07-07-font/">「连载十六」在图片上绘制文字</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/07/07</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>知识点 字体库使用 图片合成 本文目标 主要实现合并后的海报上绘制文字的功能（这个需求也是常见的很了），内容比较简单。
实现 这里使用的是 微软雅黑 的字体，请 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/gin/2018-07-05-image/">「连载十五」生成二维码、合并海报</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/07/05</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>知识点 图片生成 二维码生成 本文目标 在文章的详情页中，我们常常会需要去宣传它，而目前最常见的就是发海报了，今天我们将实现如下功能：
生成二维码
合并海报（背 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/gin/2018-06-14-excel/">「连载十四」实现导出、导入 Excel</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/06/14</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>知识点 导出功能的实现 本文目标 在本节，我们将实现对标签信息的导出、导入功能，这是很标配功能了，希望你掌握基础的使用方式。
另外在本文我们使用了 2 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/talk/2018-06-07-go-redis-protocol/">用 Go 来了解一下 Redis 通讯协议</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/06/07</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>Go、PHP、Java&hellip; 都有那么多包来支撑你使用 Redis，那你是否有想过
有了服务端，有了客户端，他们俩是怎样通讯，又是基于什么通讯协议做出 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/gin/2018-06-02-application-redis/">「连载十三」优化你的应用结构和实现Redis缓存</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/06/02</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>前言 之前就在想，不少教程或示例的代码设计都是一步到位的（也没问题）
但实际操作的读者真的能够理解透彻为什么吗？左思右想，有了今天这一章的内容，我认为实际经历过 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/gin/2018-05-27-config-upload/">「连载十二」优化配置结构及实现图片上传</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/05/27</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>知识点 重构、调整结构 本文目标 这个应用程序跑了那么久了，越来越大，越来越壮，仿佛我们的产品一样，现在它需要进行小范围重构了，以便于后续的使用，这非常重要。
 …</p>
                        
                    </div>
            </article>
        </div>
        
        <div
            class="post-6033 post type-post status-publish format-standard hentry category-php8 category-php-usage category-notes tag-match tag-match-expressionswitch tag-php-8 tag-php8 entry">
            <article>
                <div class="post-container">
                    <div class="post-header">
                        <h2 class="post-title">
                            <a href="/posts/posts/go/talk/2018-05-21-go-fake-useragent/">Go 的 fake-useragent 了解一下</a>
                        </h2>
                        <div class="post-byline">Published on
                            <a class="date" href="javascript:;">2018/05/21</a>
                            
                            
                            
                            By 
                            <a class="author" href="javascript:;">煎鱼</a></div>
                            
                    </div>
                    <div class="post-content">
                        
                        
                        
                        
                        <p>有的网站会根据 User-Agent 的不同，跳转到不同（PC、M）的站点，也有根据版本的不同给出不一样的提示等等，而 User-Agent 的变化更是爬虫里的 …</p>
                        
                    </div>
            </article>
        </div>
        

    </div>


    <nav class="navigation pagination" role="navigation" aria-label="Posts">
        <h2 class="screen-reader-text">Posts navigation</h2>
        <div class="nav-links">
            
            <a class="prev page-numbers" href="/page/18/">Previous</a>
            
            
            
            <a class="page-numbers" href="/">1</a>
            
            
            
            <a class="page-numbers" href="/page/2/">2</a>
            
            
            
            <a class="page-numbers" href="/page/3/">3</a>
            
            
            
            <a class="page-numbers" href="/page/4/">4</a>
            
            
            
            <a class="page-numbers" href="/page/5/">5</a>
            
            
            
            <a class="page-numbers" href="/page/6/">6</a>
            
            
            
            <a class="page-numbers" href="/page/7/">7</a>
            
            
            
            <a class="page-numbers" href="/page/8/">8</a>
            
            
            
            <a class="page-numbers" href="/page/9/">9</a>
            
            
            
            <a class="page-numbers" href="/page/10/">10</a>
            
            
            
            <a class="page-numbers" href="/page/11/">11</a>
            
            
            
            <a class="page-numbers" href="/page/12/">12</a>
            
            
            
            <a class="page-numbers" href="/page/13/">13</a>
            
            
            
            <a class="page-numbers" href="/page/14/">14</a>
            
            
            
            <a class="page-numbers" href="/page/15/">15</a>
            
            
            
            <a class="page-numbers" href="/page/16/">16</a>
            
            
            
            <a class="page-numbers" href="/page/17/">17</a>
            
            
            
            <a class="page-numbers" href="/page/18/">18</a>
            
            
            
            <span aria-current="page" class="page-numbers current">19</span>
            
            
            
            
            <a class="page-numbers" href="/page/20/">20</a>
            
            
            
            <a class="page-numbers" href="/page/21/">21</a>
            
            
            
            <a class="next page-numbers" href="/page/20/">Next</a>
            
        </div>
    </nav>
</section> 
<script src="https://readmore.openwrite.cn/js/readmore.js" type="text/javascript"></script>
<script>
    const btw = new BTWPlugin();
    btw.init({
        id: 'container',
        blogId: '33573-1732499652133-368',
        name: '花落雨忧',
        qrcode: 'https://www.lican.site/wechat/lican.png',
        keyword: '花落雨忧',
    });
</script>


                
                <aside class="sidebar sidebar-primary" id="sidebar-primary" role="complementary">
    <h1 class="screen-reader-text">Sidebar</h1>
    

    
    
    <section id="text-2" class="widget widget_text">
        <div class="textwidget">
            
            <div id="profile">
                <div id="profile_picture"><img src="https://www.lican.asia/logo/logo.png"></div>
                <div id="profile_intro">
                    <p><span class="name">Lican</span></p>
                    <p class="intro">全栈开发者，爱好造轮子。</p>
                </div>
            </div>
            
            <p>
                <script type="text/javascript">
                    (function ($) {
                        $(document).ready(function () {
                            var menuPrimaryContainer = $('#menu-primary-container');
                            var profile = $('#text-2');
                            $('#toggle-navigation').click(function () {
                                if (menuPrimaryContainer.hasClass('open')) {
                                    profile.removeClass('open');
                                } else {
                                    profile.addClass('open');
                                }
                            });
                        });
                    })(jQuery);
                </script>
            </p>
        </div>
    </section>
    
    
    
    
    
    <section id="text-5" class="widget widget_text">
        <h2 class="widget-title">开源项目</h2>
        <div class="textwidget">
            <div id="projects" style="line-height: 22px;">
                
                <a href="https://github.com/idoubi/gonews"
                    target="_blank">gonews</a>: &nbsp;Daily news for golang<br>
                
                <a href="https://github.com/idoubi/sql2struct"
                    target="_blank">sql2struct</a>: &nbsp;Generate go struct according to SQL<br>
                
                <a href="https://github.com/idoubi/goz"
                    target="_blank">goz</a>: &nbsp;Request library used in golang<br>
                
        </div>
    </section>
    
    

    
    
    
    
    <section id="qrcode" class="widget widget_media_image">
        <h2 class="widget-title">微信公众号</h2>
        <img width="258" height="258"
            src="https://www.lican.asia/wechat/lican.png"
            class="image wp-image-5514  attachment-full size-full" alt=""
            style="max-width: 100%; height: auto;"
            sizes="(max-width: 258px) 100vw, 258px">
    </section>
    
    

    
    
    

    
    
    

    
    
    
    
</aside>
            </div>
        </div>

        <footer id="site-footer" class="site-footer" role="contentinfo">
    <div class="max-width">
    </div>
    <div class="footer">
        <div id="footercontent">
            © lican.asia All rights reserved<br/>
            Built with Hugo Theme <a href="https://github.com/idoubi/hugo-theme-period" target="_blank">Period</a>
        </div>
    </div>
</footer>

<script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?e8351b6d4626d5881d439ea1f6184baa";
      var s = document.getElementsByTagName("script")[0]; 
      s.parentNode.insertBefore(hm, s);
    })();
</script>
    
    
    </div>
    
</body>

</html>